﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CSE360_SudokuProject
{
    public partial class UsersGuide : Form
    {
        //variable to remeber the main menu parent
        MainMenu theMainMenu;

        //constructor
        public UsersGuide(MainMenu themainmenu)
        {
            InitializeComponent();
            theMainMenu = themainmenu;
        }

        private void ReturnButton_Click(object sender, EventArgs e)
        {
            //closes instructions when the return button is clicked
            this.Close();
        }

        private void UsersGuide_FormClosed(object sender, FormClosedEventArgs e)
        {
            //tells main menu there is no longer a instruction form open
            theMainMenu.instructionOpened = false;
        }
    }
}
